class Alphabet {
  final String letter;
  final String imagePath;
  final String audioPath;
  final String phonetic;
  final List<String> examples;

  const Alphabet({
    required this.letter,
    required this.imagePath,
    required this.audioPath,
    required this.phonetic,
    required this.examples,
  });

  factory Alphabet.fromJson(Map<String, dynamic> json) {
    return Alphabet(
      letter: json['letter'] as String,
      imagePath: json['imagePath'] as String,
      audioPath: json['audioPath'] as String,
      phonetic: json['phonetic'] as String,
      examples: List<String>.from(json['examples']),
    );
  }
}
